From: Keir Fraser Date: Thu, 15 May 2008 15:40:51 +0000 (+0100) Subject: xend: Device configurations of suspended virtual machines are inaccessible X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14214^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=b93de169c393454ac8cba172e85131fb0a6006c0;p=xen.git xend: Device configurations of suspended virtual machines are inaccessible The device configurations of suspended virtual machines are inaccessible even though for example the UUIDs of the VIFs and VBDs are known and returned when VM.get_VIFs()/get_VBDs() is called, though when trying to access their records for example, then handle is reported as being invalid. This patch fixes this. Signed-off-by: Stefan Berger --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 7ebb0bf3f3..3f87e35693 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -3013,7 +3013,8 @@ class XendDomainInfo: # shortcut if the domain isn't started because # the devcontrollers will have no better information # than XendConfig. - if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED,): + if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED, + XEN_API_VM_POWER_STATE_SUSPENDED): if dev_config: return copy.deepcopy(dev_config) return None